package com.yun.springbootsecurity.mapper;

import com.yun.springbootsecurity.pojo.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserRoleMapper {

    @Select("select * from t_user_role where user_id = #{userId}")
    public List<UserRole> getUserRoleByUserId(String userId);
}
